import { useRoutes } from "react-router-dom";

import Home from "../pages/Home";
import About from "../pages/About";

const routes = [
  {
    path: "/home",
    element: <Home />,
  },
  {
    path: "/about",
    element: <About />,
  },
];

export function RenderRoutes() {
  return useRoutes(routes);
}
